package old.day03;
//if...else结构演示
public class IfElseDemo {
    public static void main(String[] args){
        int num=4;
        if (num%2==0){
            System.out.println(num+"为偶数");
        }else {
            System.out.println(num+"为奇数");
        }
        System.out.println("继续执行");

        double price=600.0;
        if (price>=500){
            price*=0.8;
        }else {
           price*=0.9;
        }
        System.out.println("最终消费金额为"+price);









    }
}
